package com.ds.dsm.repository.db.col;

import com.ds.config.ResultModel;
import com.ds.enums.db.MethodChinaName;
import com.ds.esd.custom.annotation.DialogAnnotation;
import com.ds.esd.custom.annotation.FormViewAnnotation;
import com.ds.esd.custom.api.annotation.APIEventAnnotation;
import com.ds.esd.custom.enums.CustomMenuItem;
import com.ds.esd.custom.module.annotation.ModuleAnnotation;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.ResponseBody;

@Controller
@RequestMapping(path = "/dsm/repository/col/")
@MethodChinaName(cname = "字段配置", imageClass = "spafont spa-icon-c-comboinput")
public class ColService {


    @MethodChinaName(cname = "字段信息")
    @RequestMapping(method = RequestMethod.POST, value = "ColInfo")
    @FormViewAnnotation
    @DialogAnnotation
    @ModuleAnnotation(caption = "字段信息", width = "480", height = "400")
    @APIEventAnnotation(bindMenu = {CustomMenuItem.editor, CustomMenuItem.add})
    @ResponseBody
    public ResultModel<ColBaseView> getColInfo(String tableName, String projectId, String colname) {
        return new ResultModel<>();
    }
}
